{extend name="base/main" /}
{block name="body"}

<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
    <legend>会员中心</legend>
</fieldset>

<div class="layui-btn-container">
    <a href="{:url('Usermember/add')}" type="button" class="layui-btn">添加</a>
    <a href="{:url('Usermember/del')}" type="button" class="layui-btn">删除</a>
</div>

<div class="example-wrap">
    <div class="example">
        <table class="table table-hover">
            <thead>
            <tr>
                <th><input type="checkbox" class="i-checks check-all"></th>
                <th>序号</th>
                <th>会员账号</th>
                <th>会员昵称</th>
                <th>会员等级</th>
                <th>所有权益</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            {volist name="data" id="vo"}
            <tr>
                <td><input type="checkbox" class="i-checks ids" name="id[]" value="{$vo.id}"/></td>
                <td>{$vo.id}</td>
                <td>{$vo.account}</td>
                <td>{$vo.nickname}</td>
                <td>{$vo.level}</td>
                <td>{$vo.equity}</td>
                <td>
                    <a href="{:url('Usermember/edit',['id'=>$vo['id']])}" class="btn btn-info btn-xs"><i class="fa fa-paste"></i> 编辑 </a>
                    <a href="javascript:void(0);" class="btn btn-danger btn-xs confirm tabledel ajax-post-a" target-form="id" data-id="{$vo.id}" url="{:url('Usermember/del',['id'=>$vo['id']])}"><i class="fa fa-trash"></i> 删除 </a>
                </td>
            </tr>
            {/volist}

            </tbody>
        </table>
    </div>
</div>




{/block}